import { request } from "@/utils/service"


/** 获取登录验证码 */
export function getLoginCodeApi(data: any) {
  return request({
    url:"/system/user/verificationCode",
    method: "POST",
    data
  })
}

/** 登录并返回 Token */
export function loginApi(data) {
  return request({
    url:"/system/user/login",
    method: "post",
    data
  })
}

/** token刷新 */
export function refreshTokenApi(data) {
  return request<any>({
    url:"user/account/login/refresh-token",
    method: "post",
    data
  })
}


/** 获取用户信息 */
export function getUserInfoApi() {
  return request<any>({
    url:"/system/user/profile",
    method: "post"
  })
}


/** 获取路由信息 */
export function getRoutersApi() {
  return request<any>({
    url:"/system/menu/getRouters",
    method: "post"
  })
}

